/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: max.jianhua
 * @Last Modified time: 2020-11-20 15:21:28
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 现金流量表查询 (OEM)

// 厂端获取 现金流量表 /cashFlow/oem/getCashFlow
export const queryList = (params) => axios.post(`${SERVER.WHOLESALES}/profit/oem/getFiCashFlow`, params)

// 现金流量表审核 /balance/audit
export const submitData = (params) => axios.post(`${SERVER.WHOLESALES}/cashFlow/audit`, params)

// 导出 /profit/export
export const exportExcel = (params) => axios.post(`${SERVER.WHOLESALES}/cashFlow/export`, params, {
  responseType: 'blob'
});

//通过审核
export const passData = (params) => axios.post(`${SERVER.WHOLESALES}/profit/oem/passFiCashFlow`, params)